﻿using System;
using DevExpress.Xpo;

namespace Aij1.Model
{

    public class S_Edu : XPObject
    {
        public S_Edu(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        public override void AfterConstruction()
        {
            base.AfterConstruction();
            // Place here your initialization code.
        }

        S_Person fPersonId;
        [Association("C-E")]
        public S_Person PersonId
        {
            get { return fPersonId; }
            set { SetPropertyValue<S_Person>("PersonId", ref fPersonId, value); }
        }

        int fDepartmentId;
        public int DepartmentId
        {
            get { return fDepartmentId; }
            set { SetPropertyValue<int>("DepartmentId", ref fDepartmentId, value); }
        }

        int fId;
        public int Id 
        {
            get { return fId; }
            set { SetPropertyValue<int>("Id", ref fId, value); }
        }

        int fLevel;
        public int Level
        {
            get { return fLevel; }
            set { SetPropertyValue<int>("Level", ref fLevel, value); }
        }

        int fSchoolId;
        public int SchoolId
        {
            get { return fSchoolId; }
            set { SetPropertyValue<int>("SchoolId", ref fSchoolId, value); }
        }

        int fYear;
        public int Year
        {
            get { return fYear; }
            set { SetPropertyValue<int>("Year", ref fYear, value); }
        }
    }

}